package com.baolai.service;

import com.baolai.entity.Goods;
import com.baolai.result.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;


@Service
public interface GoodsService extends IService<Goods> {
    Result addGoods(Goods goods);

    IPage<Goods> listGoods(Integer current, Integer size);

    IPage<Goods> queryGoods(String name, String type, Integer current, Integer size);

    boolean updateGoods(Goods goods);
}
